﻿using RXY_Mall.Application.Manager.Dto;
using RXY_Mall.Core;
using System.Threading.Tasks;

namespace RXY_Mall.Application.Manager
{
    public interface IManagerService
    {
        Response<AccountSessionDto> AdminLogin(string userName, string password);

        AccountSessionDto GetUserDetailsById(int id);
        Response<bool> UpdatePassword(int userId, string oldPassword, string newPassword);
        Response<bool> UpdatePayPassword(int userId, int shopId,string oldPassword, string newPassword);

        Response<AccountSessionDto> ShopAdminLogin(string userName, string password);

        Task<Response<bool>> AddManager(ManagerAddInput input);
        Response<IPagedList<ManagerListOutput>> GetManagersByPage(string start_date, string end_date, string manager_name, string manager_id, int status, int page_index = 1, int page_size = 10);
        bool SetManagerPwd(int memberId, int id, string v);
        bool SetIsUse(int memberId, int idDefault, int isUseDefault);
    }
}
